module.exports = {
  devServer:{
    host:'0.0.0.0'
  },
  transpileDependencies: true,
  pluginOptions: {
    electronBuilder: {
      customFileProtocol: "./",
      nodeIntegration: true,
      builderOptions: {
        appId: "com.cq.cmbc.gz.floor",
        copyright: "Copyright©2016-2022",
        productName: "民生大楼",//项目名，也是生成的安装文件名，即aDemo.exe
        electronDownload: {
          "mirror": "https://npm.taobao.org/mirrors/electron/"
        },
        asar: false,
        win: {
          //requestedExecutionLevel:"requireAdministrator",会导致自启动失效
          icon: "./build/icons/cmbc.ico",
          target: [
            {
              target: "nsis",
              arch: [
                "ia32"
              ]
            }
          ]
        },
        nsis: {
          perMachine: true,
          oneClick: false,
          allowElevation: true,
          allowToChangeInstallationDirectory: true,
          installerIcon: "./build/icons/cmbc.ico",
          uninstallerIcon: "./build/icons/cmbc.ico",
          installerHeaderIcon: "./build/icons/cmbc.ico",
          createDesktopShortcut: true,
          createStartMenuShortcut: true
        },
      }
    }
  }
}
